/**
 * 
 */
package pt.mleiria.room;

import pt.mleiria.sound.Alarm;

/**
 * @author NB13712
 *
 */
public class LivingRoom extends Room {
	private static final LivingRoom INSTANCE = new LivingRoom();
	private Alarm alarm;
	
	public static LivingRoom getInstance(){
		return INSTANCE;
	}
	
	private LivingRoom() {
		super(LivingRoom.class);
	}
	
	public void setAlarm(final String hhmm){
		alarm = new Alarm(hhmm, soundBehavior);
	}
	
	/* (non-Javadoc)
	 * @see pt.mleiria.room.Room#powerOff()
	 */
	@Override
	public boolean powerOff() {
		LOG.info("Cancelling Alarm...");
		return alarm.cancel();
	}

	/* (non-Javadoc)
	 * @see pt.mleiria.room.Room#powerOn()
	 */
	@Override
	public boolean powerOn() {
		// TODO Auto-generated method stub
		return false;
	}

}
